<#macro userCenterLink  memberId>${ctx}/member/${memberId}</#macro>

<#macro topicDetailLink  topicId>${ctx}/topic/detail/${topicId}</#macro>
 
<#macro groupDetailLink  groupId>${ctx}/group/detail/${groupId}</#macro>

<#macro groupActivityLink  groupId,pageNumber>${ctx}/group/detail/a/${groupId}-${pageNumber}-1</#macro>

<#macro forumList   cityNo,cateId,filter,titleTypeId,pageNumber,orderBy>${ctx}/forum/list/${cityNo}-${cateId}-${filter}-${titleTypeId}-${pageNumber}-${orderBy}</#macro>
<#macro groupListPageLink  cityNo,cateId,filter,pageNumber>${ctx}/group/list/${cityNo}-${cateId}-${filter}-${pageNumber}</#macro>
<#macro getTopicImage topic>
<#if topic.topType == 3> src="${ctx}/images/topic/pin_1.gif"
<#elseif topic.topType == 2> src="${ctx}/images/topic/pin_2.gif"
<#elseif topic.topType == 1> src="${ctx}/images/topic/pin_3.gif"
<#elseif topic.isTodayTopic == 1 >src="${ctx}/images/topic/new.gif"
<#elseif topic.topicType == 3>
src="${ctx}/images/topic/chart_bar.png"
<#elseif topic.topicType == 2>
src="${ctx}/images/topic/act.png"
<#elseif topic.picview !='http://img3.ddmapimg.com/crm//2013-05-14/233656344.jpg'>
src="${ctx}/images/topic/Images.png"
<#elseif topic.topicType == 1>
src="${ctx}/images/topic/Document.png"
<#else>
src="${ctx}/images/topic/Document.png"
</#if>
</#macro>
<#macro lastReply topic>
<#if topic.lastReplyMemberId?exists>
<a href="<@userCenterLink memberId="${topic.lastReplyMemberId?c}"/>">${topic.lastReplyMemberName!}</a>
<span><#if topic.lastReplyDate?exists>${ topic.lastReplyDate?date}<#else></#if></span>
<#else>
	<span>暂无回复</span>
</#if>
</#macro>

<#if pageNumber?exists><#else><#assign pageNumber = 1></#if>
<#if filter?exists><#else><#assign filter = 0></#if>
<#if titleTypeId?exists><#else><#assign titleTypeId = 0></#if>
<#if orderBy?exists><#else><#assign orderBy = 1></#if>
<#if cateId?exists><#else><#assign cateId = 0></#if>

